package com.lkunk.websocket_springboot.mapper;

import com.lkunk.websocket_springboot.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

    public String getPassword(String username);

    public Integer getUserId(String username);

    public String getUserName(Integer userId);

    @Select("select * from user")
    public List<User> getUsers();
}
